.detailContainer {
  padding: 24px;
  background: #f0f2f5;
  min-height: 100vh;

  @media screen and (max-width: 768px) {
    padding: 16px;
  }
}

.artworkCard {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;

  :global {
    .ant-card-body {
      padding: 0;
    }

    .ant-skeleton {
      padding: 24px;
    }
  }
}

.imageWrapper {
  width: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  
  :global(.ant-image) {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .artworkImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
  }
}

.artworkInfo {
  padding: 24px;

  @media screen and (max-width: 768px) {
    padding: 16px;
  }
}

.title {
  margin: 0 0 16px !important;
  color: #333;
  font-size: 28px !important;
  line-height: 1.4 !important;
}

.artistInfo {
  display: flex;
  align-items: center;
  margin-bottom: 24px;

  :global(.ant-avatar) {
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .artistMeta {
    margin-left: 12px;
  }

  .artistName {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    cursor: pointer;

    &:hover {
      color: #1890ff;
    }
  }

  .createTime {
    font-size: 14px;
    color: #999;
  }
}

.description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin: 24px 0;
  white-space: pre-wrap;
}

.tags {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  :global {
    .ant-tag {
      margin: 0;
      padding: 4px 12px;
      font-size: 14px;
      border-radius: 16px;
      background: #f5f5f5;
      border: none;
      color: #666;
      cursor: pointer;
      transition: all 0.3s ease;

      &:hover {
        background: #e6f7ff;
        color: #1890ff;
        transform: translateY(-1px);
      }
    }
  }
}

.stats {
  margin-bottom: 24px;
  color: #666;
  font-size: 14px;

  :global {
    .anticon {
      margin-right: 4px;
    }
  }
}

.actions {
  display: flex;
  gap: 12px;

  :global {
    .ant-btn {
      height: 40px;
      padding: 0 24px;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 20px;
      transition: all 0.3s ease;

      .anticon {
        font-size: 18px;
        margin-right: 8px;
      }

      &:hover {
        transform: translateY(-2px);
      }

      &.ant-btn-primary {
        background: #1890ff;
        border-color: #1890ff;
        
        &:hover {
          background: #40a9ff;
          border-color: #40a9ff;
        }
      }
    }
  }
}

// 图片预览
:global {
  .ant-image-preview-mask {
    background-color: rgba(0, 0, 0, 0.85);
  }

  .ant-image-preview-operations {
    background: transparent;
  }
}

// 暗色主题适配
@media (prefers-color-scheme: dark) {
  .detailContainer {
    background: #141414;
  }

  .artworkCard {
    background: #1f1f1f;
  }

  .title {
    color: #fff !important;
  }

  .artistInfo {
    .artistName {
      color: #fff;

      &:hover {
        color: #177ddc;
      }
    }

    .createTime {
      color: #666;
    }

    :global(.ant-avatar) {
      border-color: #1f1f1f;
    }
  }

  .description {
    color: #999;
  }

  .tags {
    :global {
      .ant-tag {
        background: #2f2f2f;
        color: #999;

        &:hover {
          background: #177ddc;
          color: #fff;
        }
      }
    }
  }

  .stats {
    color: #999;
  }

  .actions {
    :global {
      .ant-btn {
        background: #2f2f2f;
        border-color: #434343;
        color: #fff;

        &:hover {
          background: #177ddc;
          border-color: #177ddc;
        }

        &.ant-btn-primary {
          background: #177ddc;
          border-color: #177ddc;

          &:hover {
            background: #40a9ff;
            border-color: #40a9ff;
          }
        }
      }
    }
  }
}

// 响应式调整
@media screen and (max-width: 576px) {
  .imageWrapper {
    min-height: 300px;
  }

  .title {
    font-size: 20px !important;
  }

  .description {
    font-size: 14px;
    margin: 16px 0;
  }

  .actions {
    :global {
      .ant-btn {
        height: 36px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 18px;

        .anticon {
          font-size: 16px;
        }
      }
    }
  }
}